﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace Model
{
    public class Class_Connection
    {

        public static string connection = "Server =(local)\\SQLEXPRESS; Database = QLHV;Integrated Security=True;";
        static public SqlConnection conn;
        public static string stringconnection()
        {
            return connection;
        }
        public static void addconnection()
        {
            try
            {
                conn = new SqlConnection(connection);
                conn.Open();
            }
            catch { };
        }
        public static void canceconnection()
        {
            conn.Close();
        }
       
        
    }
}
